package com.lcf.system.vo.dict;

import com.lcf.system.enums.SysDictTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 字典值(SysDict)表实体类
 *
 * @author lcf
 * @since 2025-03-16 22:04:23
 */
@NoArgsConstructor
@Data
public class SysDictTypeVO {
    @Schema(description = "类型code")
    private String typeCode;
    //字典值
    @Schema(description = "类型描述")
    private String name;

    public SysDictTypeVO(SysDictTypeEnum typeEnum) {
        this.typeCode = typeEnum.getCode();
        this.name = typeEnum.getName();
    }
}

